<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
<link rel="stylesheet" href="../../../javascript/plug-ins/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="../../../css/style.css" />		
<script src="../../../javascript/jquery.js"></script>
<script type="text/javascript" src="../../../javascript/plug-ins/layui/layui.js"></script>	
<script type="text/javascript" src="../../../javascript/plug-ins/pagination.js" ></script>

<script src="js/driver_list.js?v=1"></script>
	</head>
	<body>
		
	   <div class="page-wrap">		
		
		<section class="page-hd t">         
         <header>
			<h5 class="title">
				<a href="driver_list.html" class="red">工号账号</a>
				<a href="operation_recard_driver.html">操作记录</a><!------>
			</h5>	
		 </header>
		 <hr>
		</section>
		
		
		<div class="panel panel-default" style="text-align: center;">
		  
		  <div class="flex flex-wrap flex-col-5 form-group">
              
              <div class="box-child text-left"><input onclick="window.location.href='add_driver.html'" type="button"  value="新增" class="btn btn-info" /></div>
		<!--  	  <div class="box-child">工位类型：
				<select style="width:auto;" id="gw_type" onchange="search()">
					<option value="-1">选择类型</option><option value="1">厂内岗位</option><option value="2">物流岗位</option>
				</select>
			  </div>
		  	  <div class="box-child">工位：
				<select style="width:auto;" id="gw" onchange="search()">
				
				</select>
			  </div>	
		-->			  
		  	  <div class="box-child width30">工号/姓名：<input id="gw_name" class="form-control width50" placeholder="请输入工号或姓名" /> 
			  <input class="btn btn-info" type="button" value="搜索" onclick="search()"/> </div>
		  	<div class="box-child text-left" style="line-height: 31px;">是否开启物流系统:   <input type="checkbox" name="jd_check" value="" class="btn btn-info" style="width: 20px;height: 20px;"/></div>
		  </div>
		  
		  
		  
		  <table class="table table-bordered" id="tableid1">
		  	<thead>
		  		<tr>
		  			<th>ID</th>
		  			<th>工号</th>
		  			<th>姓名</th>
		  			<th>工位类型</th>
		  			<th>登录次数</th>
		  			<th>创建时间</th>
		  			<!--<th>使用有效期</th>-->
		  			<th>最后登录时间</th>
		  			<th>操作</th>
		  		</tr>
		  	</thead>
		<!--  	<tbody>
		  		<tr>
		  			<td>1</td>
		  			<td>1001</td>
		  			<td>张三。。。</td>
		  			<td>厂内岗位</td>
		  			<td>入厂</td>
		  			<td>58</td>
		  			<td>2017-12-4</td>
		  			<td>2017-12-4</td>
		  			<td><a href="#">编辑</a>&nbsp;&nbsp;&nbsp;<a href="#">删除</a></td>
		  		</tr>
		  		<tr>
		  			<td>1</td>
		  			<td>1001</td>
		  			<td>张三。。。</td>
		  			<td>物流岗位</td>
		  			<td>司机</td>
		  			<td>58</td>
		  			<td>2017-12-4</td>
		  			<td>2017-12-4</td>
		  			<td><a href="#">编辑</a>&nbsp;&nbsp;&nbsp;<a href="#">删除</a></td>
		  		</tr>
		  		
		  	</tbody>
		  	-->
  	
		  </table>
			<div id="page"></div>
			
		</div><!---panel--->
		
		<div class="popup" style="width:100%;height:100%;position:fixed;top:0;left:0;z-index:11111;display:none;">
			<div style="width:100%;height:100%;z-index:222222;background-color:black;opacity:0.5;position:absolute;top:0;left:0;"></div>
			<div style="width:22%;height:52%;border:1px solid #ffffff;position:absolute;top:20%;left:30%;background-color:#ffffff;z-index:333333;">
				<div onclick="popup_hide();" style="background-color:#999;color:#ffffff;position:relative;z-index:222222;width:20px;height:20px;border:1px solid #999;float:right;top:-10px;left:10px;border-radius: 50%;text-align:center;line-height:17px;">x</div>
				<div style="position:relative;z-index:222222;width:75%;height:73%;margin:10% 12%;" >
					<img class="scan_info" src="../../img/fenxiang.png"/>
				</div>
				<div style="position:relative;z-index:222222;margin-top:-23px;font-size:15px;font-weight:600;margin-left:65px;"><span>扫码支付:<span style="color:red;margin-left:10px;">200</span>元</span></div>
				<div style="position:relative;z-index:222222;margin-left:65px;font-size:15px;font-weight:600;"><span>支付倒计时<span id="times" style="color:red;margin-left:10px;">60s</span></span></div>
			</div>
		</div>
			
	   </div><!---page-wrap------>		
		
		
	</body>
	<script>
	$(function(){
		$("input[name='jd_check']").click(function(){
			$.ajax({
				url: "../../../../service",
				cache: false,
				async: false,
				data: {
					proc: "xmy_zyr.update_sys_state",
					para: "['" + username + "','" + secretkey + "','isopendriver','" + (this.checked?1:0) + "']"
				},
				dataType: "json",
				success: function(data) {
					//console.log(JSON.stringify(data));
					if(data[0].TAG=='0'){
						top.layer.alert(""+data[0].MSG+"",function(index){
						   top.location.href="login.html";
						});   
					}else{
						top.layer.alert(data[0].MSG);
					}
				}
			});
		})
	})
	</script>
	
		
	
	
</html>
